package com.smartcampusbackend.mapper;

import com.smartcampusbackend.model.ResourceBooking;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Date;

@Mapper
public interface ResourceBookingMapper {
    int insert(ResourceBooking booking);
    int update(ResourceBooking booking);
    int deleteById(Integer id);
    ResourceBooking selectById(Integer id);
    List<ResourceBooking> selectByUserId(@Param("userId") Integer userId);
    List<ResourceBooking> selectByStatus(@Param("status") String status);
    List<ResourceBooking> selectAll();
    List<ResourceBooking> selectByResourceIdAndDate(@Param("resourceId") String resourceId, @Param("bookingDate") Date bookingDate);
} 